 #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int main()
{
	string s = "test.cpp";
	FILE* fout = fopen(s.c_str(), "r");
	if (fout == nullptr)
	{
		cout << "fout error" << endl;
		return -1;
	}
	char ch = fgetc(fout);
	while (ch != EOF)
	{
		cout << ch;
		ch = fgetc(fout);
	}
	return 0;
}